package com.swt.gap.util.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class NoModelExcelListener  extends AnalysisEventListener<Map<Integer,String>> {
    private List<Map<Integer, String>> allDataList = new ArrayList<>();


    @Override
    public void invoke(Map<Integer, String> integerStringMap, AnalysisContext analysisContext) {
        analysisContext.readRowHolder().getRowIndex();
        allDataList.add(integerStringMap);
    }


    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

    public List<Map<Integer, String>> getAllDataList() {
        return allDataList;
    }
}
